#ifndef __OSA_SAVE_FILE_H__
#define __OSA_SAVE_FILE_H__

#include <vector>
#include <string>
#include <fstream>
#include "sqlite3_db.h"

class save_traces: protected sql_query
{
  char date_time[20];

  //float *x, *y;
  //std::vector<float*> all_y;
  unsigned length;
  //std::vector<float> z;

  float sensitivity;
  float resolution_bandwidth;
/*
  std::string filename;
  std::ofstream traces_file_ascii;

  void print_vector_ascii(char varname[],unsigned length, float *px);
  void print_vector_ascii(char varname[], std::vector<float> &vect);
  void print_matrix_ascii(char varname[], unsigned nx, std::vector<float*> &matrix);
  void print_scalar_ascii(char varname[], float value);
  void print_string_ascii(char varname[], std::string value);
*/
public:
  save_traces(unsigned length, float wav_start, float wav_stop, float sens, float res_bw, std::string &title);
  //~save_traces();
  void input_trace(float new_z, float new_y[],unsigned length);
  //void input_z(float new_z);
  //void write_to_file();
  //void write_to_file_mat7();
};

#endif


